<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>体验一下获得元素方式的不同</title>
</head>
<body>
<a href="index.html">首页</a>
<p id="p1" class="">点击我才有效果</p>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript">
		var js=document.getElementById('p1');
		js.onclick=function(){
			alert("this is js")
		};
		//jq
		var jq=$('#p1')
		jq.click(function(){
			alert('this is jq')
		})
	</script>
</body>
</html>